﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="../js/jquery.js"></script>
</head>
<body>
    <button id="button">点击</button>
    <div id="html">
        
    </div>
</body>
</html>
<script>
    var data = ['name', 'age', 'sex'];
    var count = 0;
    $("#button").click(function () {
        
        $("#html").append('<input id="' + data[count] + '" type="text" />')
        count = count + 1;
    })
</script>